﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <title>UrlGet: UrlGet Class Reference</title>
    <link href="/Content/Help.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/tabs.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="header">
        <img id="logo" alt="StateForge" src="/Content/Images/StateForgeLogo.png" />
        <div id="title">
            <h1>
                Examples using state machines generated by StateBuilderCpp
            </h1>
            <h3>
                UrlGet: UrlGet Class Reference
            </h3>
        </div>
        <div id="menucontainer">
            <ul id="menu">
                <li><a href="/">Home</a></li>
                <li><a href="/Home/Download">Downloads</a></li>
                <li><a href="/Help/state-machine-tools.aspx">Help</a></li>
                <li><a href="/Home/Faq">F.A.Q</a></li>
                <li><a href="/Home/About">Contact us</a></li>
            </ul>
        </div>
    </div>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-slots">Private Slots</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">UrlGet Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="UrlGet" -->
<p><code>#include &lt;<a class="el" href="_url_get_8h_source.html">UrlGet.h</a>&gt;</code></p>

<p><a href="class_url_get-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_url_get.html#ab54cae439a226ccbccce55310fd51bb7">start</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_url_get.html#a405d37d12a23303c45110ffe468f705b">UrlGet</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_url_get.html#a0c31673e64a115294234edb70c9f53aa">~UrlGet</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_url_get.html#a2d3165891395e481646a2a444bd6fcb3">httpStart</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_url_get.html#a1785587199624ed070f6bb691fa460ae">ftpStart</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QHttp *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_url_get.html#a9743aafc30e51855ce0c3049573f57b8">getHttp</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QFtp *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_url_get.html#afcef3056e082ff32b3fb3852eacd37f4">getFtp</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-slots"></a>
Private Slots</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_url_get.html#ae4bbdb3d1c8126bf7f6b3d2a91b7db18">contextEnd</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_url_get.html#a512c815d3b7d5e5f964b68f6f06632b8">httpDone</a> (bool error)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_url_get.html#aa409606fc1d39801f456da7990a8a0ef">httpStateChange</a> (int state)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_url_get.html#a6da56590cec6c2314302c1329f9f6383">ftpDone</a> (bool error)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_url_get.html#a44d0d859ba433ee67ccfcffae2e94d2b">ftpStateChange</a> (int state)</td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_url_get.html#a73259d32482632ed158a04b92ae0ab0b">logInit</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_url_get.html#aac50bb8f47a15569c527c5d5d8190f54">httpInit</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_url_get.html#afd8815c27e1a6e4bef383597750f8c18">ftpInit</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">UrlGetContext *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_url_get.html#aa5b6babde98ea04e1f46c879192b32d6">m_pUrlGetContext</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QHttp *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_url_get.html#a3e788060f987572d5fba645b8b574fc2">m_pHttp</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_url_get.html#a9b47cf0eab2b6a68fd12c207b97634d8">m_httpHost</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_url_get.html#ac3299521da7cc49b299f95a33082defd">m_httpFile</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QFtp *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_url_get.html#a13285bfd40dc20dfd75180f66c1337bf">m_pFtp</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_url_get.html#aba9c5a800f1b6c0b792098e7ceb700ac">m_ftpHost</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_url_get.html#a24ceddace31a9f2c80a61373f8b681d0">m_ftpFile</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_url_get_8h_source.html#l00012">12</a> of file <a class="el" href="_url_get_8h_source.html">UrlGet.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a405d37d12a23303c45110ffe468f705b"></a><!-- doxytag: member="UrlGet::UrlGet" ref="a405d37d12a23303c45110ffe468f705b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UrlGet::UrlGet </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_url_get_8cpp_source.html#l00019">19</a> of file <a class="el" href="_url_get_8cpp_source.html">UrlGet.cpp</a>.</p>
<div class="fragment"><pre class="fragment">               :
        <a class="code" href="class_url_get.html#a3e788060f987572d5fba645b8b574fc2">m_pHttp</a>(NULL),
        <a class="code" href="class_url_get.html#a9b47cf0eab2b6a68fd12c207b97634d8">m_httpHost</a>(<span class="stringliteral">&quot;qt.nokia.com&quot;</span>),
        <a class="code" href="class_url_get.html#ac3299521da7cc49b299f95a33082defd">m_httpFile</a>(<span class="stringliteral">&quot;/&quot;</span>),
        <a class="code" href="class_url_get.html#a13285bfd40dc20dfd75180f66c1337bf">m_pFtp</a>(NULL),
        <a class="code" href="class_url_get.html#aba9c5a800f1b6c0b792098e7ceb700ac">m_ftpHost</a>(<span class="stringliteral">&quot;ftp.qt.nokia.com&quot;</span>),
        <a class="code" href="class_url_get.html#a24ceddace31a9f2c80a61373f8b681d0">m_ftpFile</a>(<span class="stringliteral">&quot;INSTALL&quot;</span>)
{
    <a class="code" href="class_url_get.html#a73259d32482632ed158a04b92ae0ab0b">logInit</a>();
    <span class="comment">// Generated UrlGetContext</span>
    <a class="code" href="class_url_get.html#aa5b6babde98ea04e1f46c879192b32d6">m_pUrlGetContext</a> = <span class="keyword">new</span> UrlGetContext(*<span class="keyword">this</span>, <span class="keyword">this</span>);
    <a class="code" href="class_url_get.html#aa5b6babde98ea04e1f46c879192b32d6">m_pUrlGetContext</a>-&gt;SetObserver(SmQtObserver::GetInstance());
    QObject::connect(<a class="code" href="class_url_get.html#aa5b6babde98ea04e1f46c879192b32d6">m_pUrlGetContext</a>,
                     SIGNAL(end()),
                     <span class="keyword">this</span>,
                     SLOT(<a class="code" href="class_url_get.html#ae4bbdb3d1c8126bf7f6b3d2a91b7db18">contextEnd</a>()));

}
</pre></div>
</div>
</div>
<a class="anchor" id="a0c31673e64a115294234edb70c9f53aa"></a><!-- doxytag: member="UrlGet::~UrlGet" ref="a0c31673e64a115294234edb70c9f53aa" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UrlGet::~UrlGet </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_url_get_8cpp_source.html#l00038">38</a> of file <a class="el" href="_url_get_8cpp_source.html">UrlGet.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    QLOG_DEBUG();
}
</pre></div>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ae4bbdb3d1c8126bf7f6b3d2a91b7db18"></a><!-- doxytag: member="UrlGet::contextEnd" ref="ae4bbdb3d1c8126bf7f6b3d2a91b7db18" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UrlGet::contextEnd </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_url_get_8cpp_source.html#l00058">58</a> of file <a class="el" href="_url_get_8cpp_source.html">UrlGet.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    QCoreApplication::exit(0);
}
</pre></div>
</div>
</div>
<a class="anchor" id="a6da56590cec6c2314302c1329f9f6383"></a><!-- doxytag: member="UrlGet::ftpDone" ref="a6da56590cec6c2314302c1329f9f6383" args="(bool error)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UrlGet::ftpDone </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>error</em></td><td>)</td>
          <td><code> [private, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_url_get_8cpp_source.html#l00128">128</a> of file <a class="el" href="_url_get_8cpp_source.html">UrlGet.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <span class="keywordflow">if</span> (error == <span class="keyword">true</span>) {
        QLOG_INFO() &lt;&lt; error &lt;&lt; <a class="code" href="class_url_get.html#afcef3056e082ff32b3fb3852eacd37f4">getFtp</a>()-&gt;errorString();
        <a class="code" href="class_url_get.html#aa5b6babde98ea04e1f46c879192b32d6">m_pUrlGetContext</a>-&gt;evFtpDoneError();
    } <span class="keywordflow">else</span> {
        QLOG_INFO() &lt;&lt; <span class="stringliteral">&quot;ok&quot;</span>;
        <a class="code" href="class_url_get.html#aa5b6babde98ea04e1f46c879192b32d6">m_pUrlGetContext</a>-&gt;evFtpDone();
    }
}
</pre></div>
</div>
</div>
<a class="anchor" id="afd8815c27e1a6e4bef383597750f8c18"></a><!-- doxytag: member="UrlGet::ftpInit" ref="afd8815c27e1a6e4bef383597750f8c18" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UrlGet::ftpInit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_url_get_8cpp_source.html#l00118">118</a> of file <a class="el" href="_url_get_8cpp_source.html">UrlGet.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <span class="keywordflow">if</span> (<a class="code" href="class_url_get.html#a13285bfd40dc20dfd75180f66c1337bf">m_pFtp</a> != NULL) {
        <span class="keyword">delete</span> <a class="code" href="class_url_get.html#a13285bfd40dc20dfd75180f66c1337bf">m_pFtp</a>;
    }
    <a class="code" href="class_url_get.html#a13285bfd40dc20dfd75180f66c1337bf">m_pFtp</a> = <span class="keyword">new</span> QFtp(<span class="keyword">this</span>);
    connect(<a class="code" href="class_url_get.html#a13285bfd40dc20dfd75180f66c1337bf">m_pFtp</a>, SIGNAL(done(<span class="keywordtype">bool</span>)), <span class="keyword">this</span>, SLOT(<a class="code" href="class_url_get.html#a6da56590cec6c2314302c1329f9f6383">ftpDone</a>(<span class="keywordtype">bool</span>)));
    connect(<a class="code" href="class_url_get.html#a13285bfd40dc20dfd75180f66c1337bf">m_pFtp</a>, SIGNAL(stateChanged(<span class="keywordtype">int</span>)), <span class="keyword">this</span>, SLOT(<a class="code" href="class_url_get.html#a44d0d859ba433ee67ccfcffae2e94d2b">ftpStateChange</a>(<span class="keywordtype">int</span>)));
}
</pre></div>
</div>
</div>
<a class="anchor" id="a1785587199624ed070f6bb691fa460ae"></a><!-- doxytag: member="UrlGet::ftpStart" ref="a1785587199624ed070f6bb691fa460ae" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UrlGet::ftpStart </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_url_get_8cpp_source.html#l00139">139</a> of file <a class="el" href="_url_get_8cpp_source.html">UrlGet.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    QLOG_INFO() &lt;&lt; <span class="stringliteral">&quot;host: &quot;</span> &lt;&lt; <a class="code" href="class_url_get.html#aba9c5a800f1b6c0b792098e7ceb700ac">m_ftpHost</a> &lt;&lt; <span class="stringliteral">&quot;, file: &quot;</span> &lt;&lt; <a class="code" href="class_url_get.html#a24ceddace31a9f2c80a61373f8b681d0">m_ftpFile</a>;
    <a class="code" href="class_url_get.html#afcef3056e082ff32b3fb3852eacd37f4">getFtp</a>()-&gt;connectToHost(<a class="code" href="class_url_get.html#aba9c5a800f1b6c0b792098e7ceb700ac">m_ftpHost</a>);
    <a class="code" href="class_url_get.html#afcef3056e082ff32b3fb3852eacd37f4">getFtp</a>()-&gt;login();
    <a class="code" href="class_url_get.html#afcef3056e082ff32b3fb3852eacd37f4">getFtp</a>()-&gt;cd(<span class="stringliteral">&quot;qt&quot;</span>);
    <a class="code" href="class_url_get.html#afcef3056e082ff32b3fb3852eacd37f4">getFtp</a>()-&gt;get(m_ftpFile);
    <a class="code" href="class_url_get.html#afcef3056e082ff32b3fb3852eacd37f4">getFtp</a>()-&gt;close();
}
</pre></div>
</div>
</div>
<a class="anchor" id="a44d0d859ba433ee67ccfcffae2e94d2b"></a><!-- doxytag: member="UrlGet::ftpStateChange" ref="a44d0d859ba433ee67ccfcffae2e94d2b" args="(int state)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UrlGet::ftpStateChange </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>state</em></td><td>)</td>
          <td><code> [private, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_url_get_8cpp_source.html#l00149">149</a> of file <a class="el" href="_url_get_8cpp_source.html">UrlGet.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    QLOG_INFO() &lt;&lt; <span class="stringliteral">&quot;state &quot;</span> &lt;&lt; state; 
}
</pre></div>
</div>
</div>
<a class="anchor" id="afcef3056e082ff32b3fb3852eacd37f4"></a><!-- doxytag: member="UrlGet::getFtp" ref="afcef3056e082ff32b3fb3852eacd37f4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QFtp * UrlGet::getFtp </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_url_get_8cpp_source.html#l00110">110</a> of file <a class="el" href="_url_get_8cpp_source.html">UrlGet.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
  <span class="keywordflow">if</span>(<a class="code" href="class_url_get.html#a13285bfd40dc20dfd75180f66c1337bf">m_pFtp</a> == NULL){
    <a class="code" href="class_url_get.html#afd8815c27e1a6e4bef383597750f8c18">ftpInit</a>();
  }
  <span class="keywordflow">return</span> <a class="code" href="class_url_get.html#a13285bfd40dc20dfd75180f66c1337bf">m_pFtp</a>;
};
</pre></div>
</div>
</div>
<a class="anchor" id="a9743aafc30e51855ce0c3049573f57b8"></a><!-- doxytag: member="UrlGet::getHttp" ref="a9743aafc30e51855ce0c3049573f57b8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QHttp * UrlGet::getHttp </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_url_get_8cpp_source.html#l00069">69</a> of file <a class="el" href="_url_get_8cpp_source.html">UrlGet.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
  <span class="keywordflow">if</span>(<a class="code" href="class_url_get.html#a3e788060f987572d5fba645b8b574fc2">m_pHttp</a> == NULL){
    <a class="code" href="class_url_get.html#aac50bb8f47a15569c527c5d5d8190f54">httpInit</a>();
  }
  <span class="keywordflow">return</span> <a class="code" href="class_url_get.html#a3e788060f987572d5fba645b8b574fc2">m_pHttp</a>;
};
</pre></div>
</div>
</div>
<a class="anchor" id="a512c815d3b7d5e5f964b68f6f06632b8"></a><!-- doxytag: member="UrlGet::httpDone" ref="a512c815d3b7d5e5f964b68f6f06632b8" args="(bool error)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UrlGet::httpDone </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>error</em></td><td>)</td>
          <td><code> [private, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_url_get_8cpp_source.html#l00099">99</a> of file <a class="el" href="_url_get_8cpp_source.html">UrlGet.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <span class="keywordflow">if</span> (error == <span class="keyword">true</span>) {
        QLOG_INFO() &lt;&lt; <span class="stringliteral">&quot;error: &quot;</span> &lt;&lt; <a class="code" href="class_url_get.html#a9743aafc30e51855ce0c3049573f57b8">getHttp</a>()-&gt;errorString();
        <a class="code" href="class_url_get.html#aa5b6babde98ea04e1f46c879192b32d6">m_pUrlGetContext</a>-&gt;evHttpDoneError();
    } <span class="keywordflow">else</span> {
        QLOG_INFO() &lt;&lt; <span class="stringliteral">&quot;ok&quot;</span>;
        <a class="code" href="class_url_get.html#aa5b6babde98ea04e1f46c879192b32d6">m_pUrlGetContext</a>-&gt;evHttpDone();
    }
}
</pre></div>
</div>
</div>
<a class="anchor" id="aac50bb8f47a15569c527c5d5d8190f54"></a><!-- doxytag: member="UrlGet::httpInit" ref="aac50bb8f47a15569c527c5d5d8190f54" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UrlGet::httpInit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_url_get_8cpp_source.html#l00077">77</a> of file <a class="el" href="_url_get_8cpp_source.html">UrlGet.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <span class="keywordflow">if</span> (<a class="code" href="class_url_get.html#a3e788060f987572d5fba645b8b574fc2">m_pHttp</a> != NULL) {
        <span class="keyword">delete</span> <a class="code" href="class_url_get.html#a3e788060f987572d5fba645b8b574fc2">m_pHttp</a>;
    }
    <a class="code" href="class_url_get.html#a3e788060f987572d5fba645b8b574fc2">m_pHttp</a> = <span class="keyword">new</span> QHttp(<span class="keyword">this</span>);
    connect(<a class="code" href="class_url_get.html#a3e788060f987572d5fba645b8b574fc2">m_pHttp</a>, SIGNAL(done(<span class="keywordtype">bool</span>)), <span class="keyword">this</span>, SLOT(<a class="code" href="class_url_get.html#a512c815d3b7d5e5f964b68f6f06632b8">httpDone</a>(<span class="keywordtype">bool</span>)));
    connect(<a class="code" href="class_url_get.html#a3e788060f987572d5fba645b8b574fc2">m_pHttp</a>, SIGNAL(stateChanged(<span class="keywordtype">int</span>)), <span class="keyword">this</span>, SLOT(<a class="code" href="class_url_get.html#aa409606fc1d39801f456da7990a8a0ef">httpStateChange</a>(<span class="keywordtype">int</span>)));
}
</pre></div>
</div>
</div>
<a class="anchor" id="a2d3165891395e481646a2a444bd6fcb3"></a><!-- doxytag: member="UrlGet::httpStart" ref="a2d3165891395e481646a2a444bd6fcb3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UrlGet::httpStart </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_url_get_8cpp_source.html#l00087">87</a> of file <a class="el" href="_url_get_8cpp_source.html">UrlGet.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    QLOG_INFO() &lt;&lt; <span class="stringliteral">&quot;host: &quot;</span> &lt;&lt; <a class="code" href="class_url_get.html#a9b47cf0eab2b6a68fd12c207b97634d8">m_httpHost</a> &lt;&lt; <span class="stringliteral">&quot;, file: &quot;</span> &lt;&lt; <a class="code" href="class_url_get.html#ac3299521da7cc49b299f95a33082defd">m_httpFile</a>;
    <a class="code" href="class_url_get.html#a9743aafc30e51855ce0c3049573f57b8">getHttp</a>()-&gt;setHost(<a class="code" href="class_url_get.html#a9b47cf0eab2b6a68fd12c207b97634d8">m_httpHost</a>);
    <a class="code" href="class_url_get.html#a9743aafc30e51855ce0c3049573f57b8">getHttp</a>()-&gt;get(m_httpFile);
}
</pre></div>
</div>
</div>
<a class="anchor" id="aa409606fc1d39801f456da7990a8a0ef"></a><!-- doxytag: member="UrlGet::httpStateChange" ref="aa409606fc1d39801f456da7990a8a0ef" args="(int state)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UrlGet::httpStateChange </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>state</em></td><td>)</td>
          <td><code> [private, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_url_get_8cpp_source.html#l00094">94</a> of file <a class="el" href="_url_get_8cpp_source.html">UrlGet.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    QLOG_INFO() &lt;&lt; <span class="stringliteral">&quot;state &quot;</span> &lt;&lt; state;
}
</pre></div>
</div>
</div>
<a class="anchor" id="a73259d32482632ed158a04b92ae0ab0b"></a><!-- doxytag: member="UrlGet::logInit" ref="a73259d32482632ed158a04b92ae0ab0b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UrlGet::logInit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_url_get_8cpp_source.html#l00043">43</a> of file <a class="el" href="_url_get_8cpp_source.html">UrlGet.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
   QCoreApplication *pApp = QCoreApplication::instance();
   QsLogging::Logger&amp; logger = QsLogging::Logger::instance();
   logger.setLoggingLevel(QsLogging::TraceLevel);
   <span class="comment">//Log to file</span>
   <span class="keyword">const</span> QString logPath(QDir(pApp-&gt;applicationDirPath()).filePath(<span class="stringliteral">&quot;Log.txt&quot;</span>));
   QsLogging::DestinationPtr fileDestination(
      QsLogging::DestinationFactory::MakeFileDestination(logPath) );
   logger.addDestination(fileDestination);
   <span class="comment">//Log to standard output</span>
   QsLogging::DestinationPtr debugDestination = QsLogging::DestinationFactory::MakeDebugOutputDestination();
   logger.addDestination(debugDestination);
}
</pre></div>
</div>
</div>
<a class="anchor" id="ab54cae439a226ccbccce55310fd51bb7"></a><!-- doxytag: member="UrlGet::start" ref="ab54cae439a226ccbccce55310fd51bb7" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UrlGet::start </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_url_get_8cpp_source.html#l00063">63</a> of file <a class="el" href="_url_get_8cpp_source.html">UrlGet.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    QLOG_INFO();
    <a class="code" href="class_url_get.html#aa5b6babde98ea04e1f46c879192b32d6">m_pUrlGetContext</a>-&gt;evStart();
}
</pre></div>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a24ceddace31a9f2c80a61373f8b681d0"></a><!-- doxytag: member="UrlGet::m_ftpFile" ref="a24ceddace31a9f2c80a61373f8b681d0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString <a class="el" href="class_url_get.html#a24ceddace31a9f2c80a61373f8b681d0">UrlGet::m_ftpFile</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_url_get_8h_source.html#l00053">53</a> of file <a class="el" href="_url_get_8h_source.html">UrlGet.h</a>.</p>

</div>
</div>
<a class="anchor" id="aba9c5a800f1b6c0b792098e7ceb700ac"></a><!-- doxytag: member="UrlGet::m_ftpHost" ref="aba9c5a800f1b6c0b792098e7ceb700ac" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString <a class="el" href="class_url_get.html#aba9c5a800f1b6c0b792098e7ceb700ac">UrlGet::m_ftpHost</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_url_get_8h_source.html#l00052">52</a> of file <a class="el" href="_url_get_8h_source.html">UrlGet.h</a>.</p>

</div>
</div>
<a class="anchor" id="ac3299521da7cc49b299f95a33082defd"></a><!-- doxytag: member="UrlGet::m_httpFile" ref="ac3299521da7cc49b299f95a33082defd" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString <a class="el" href="class_url_get.html#ac3299521da7cc49b299f95a33082defd">UrlGet::m_httpFile</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_url_get_8h_source.html#l00047">47</a> of file <a class="el" href="_url_get_8h_source.html">UrlGet.h</a>.</p>

</div>
</div>
<a class="anchor" id="a9b47cf0eab2b6a68fd12c207b97634d8"></a><!-- doxytag: member="UrlGet::m_httpHost" ref="a9b47cf0eab2b6a68fd12c207b97634d8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString <a class="el" href="class_url_get.html#a9b47cf0eab2b6a68fd12c207b97634d8">UrlGet::m_httpHost</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_url_get_8h_source.html#l00046">46</a> of file <a class="el" href="_url_get_8h_source.html">UrlGet.h</a>.</p>

</div>
</div>
<a class="anchor" id="a13285bfd40dc20dfd75180f66c1337bf"></a><!-- doxytag: member="UrlGet::m_pFtp" ref="a13285bfd40dc20dfd75180f66c1337bf" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QFtp* <a class="el" href="class_url_get.html#a13285bfd40dc20dfd75180f66c1337bf">UrlGet::m_pFtp</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_url_get_8h_source.html#l00051">51</a> of file <a class="el" href="_url_get_8h_source.html">UrlGet.h</a>.</p>

</div>
</div>
<a class="anchor" id="a3e788060f987572d5fba645b8b574fc2"></a><!-- doxytag: member="UrlGet::m_pHttp" ref="a3e788060f987572d5fba645b8b574fc2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QHttp* <a class="el" href="class_url_get.html#a3e788060f987572d5fba645b8b574fc2">UrlGet::m_pHttp</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_url_get_8h_source.html#l00045">45</a> of file <a class="el" href="_url_get_8h_source.html">UrlGet.h</a>.</p>

</div>
</div>
<a class="anchor" id="aa5b6babde98ea04e1f46c879192b32d6"></a><!-- doxytag: member="UrlGet::m_pUrlGetContext" ref="aa5b6babde98ea04e1f46c879192b32d6" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UrlGetContext* <a class="el" href="class_url_get.html#aa5b6babde98ea04e1f46c879192b32d6">UrlGet::m_pUrlGetContext</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_url_get_8h_source.html#l00040">40</a> of file <a class="el" href="_url_get_8h_source.html">UrlGet.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_url_get_8h_source.html">UrlGet.h</a></li>
<li><a class="el" href="_url_get_8cpp_source.html">UrlGet.cpp</a></li>
</ul>
</div>
﻿<div id="footer">
    <hr />
    <p>
        Copyright &copy; 2011 StateForge.</p>
    <hr />
</div>
</body> </html> 
